<template>
  <div class="project zy-content ">
    <div class="title">
      <span>物料维护详情</span>
      <div class="back" @click="back">返回上一级</div>
    </div>
    <div class="content">
       <Row>
         <Col :span="6" class="content_item">
           <span>所属公司：</span>
           <span>{{detaiRow.company}}</span>
         </Col>
         <Col :span="6" class="content_item">
           <span>物料名称：</span>
           <span>{{detaiRow.maName}}</span>
         </Col>
         <Col :span="6" class="content_item">
           <span>物料编码：</span>
           <span>{{detaiRow.maCode}}</span>
         </Col>
         <Col :span="6" class="content_item">
           <span>物料类型：</span>
           <span>{{detaiRow.maModel}}</span>
         </Col>
         <Col :span="6" class="content_item">
           <span>单价：</span>
           <span>{{detaiRow.maPrice}}</span>
         </Col>
         <Col :span="6" class="content_item">
           <span>单位：</span>
           <span>{{detaiRow.maUnit}}</span>
         </Col>
         <Col :span="6" class="content_item">
           <span>创建时间：</span>
           <span>{{detaiRow.createTime}}</span>
         </Col>
       </Row>
    </div>
  </div>
</template>

<script>
export default {
  name: "materialdetail",
  props: {
    detaiRow: {
      type: Object
    }
  },
  data(){
    return{

    }
  },
  methods:{
    back() {
      this.$emit("changeDetailVisible", false);
    }
  }
}
</script>

<style scoped lang="scss">
.project{
  //background: #ffffff;
  height: calc(100vh - 150px);
  .content{
    .content_item{
      display: flex;
      justify-content: flex-start;
      align-items: center;
      padding: 15px;
      span:first-child{
        margin-right: 10px;
      }
      span{
        font-weight: 500;
        font-size: 18px;
      }
    }
  }
  .title{
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    padding: 10px;
    border-bottom: 1px solid #dddddd;
    .back {
      color: #187bdb;
      font-size: 16px;
      padding-left: 20px;
      cursor: pointer;
    }
  }
}

</style>
